package com.bootcamp.s2_0922.ds._0928;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;

/**
 * @program: myClassCode
 * @description: diff between collection and map
 * @author: Keyu Li
 * @create: 2021-09-28 10:04
 **/

public class Demo1_Collection1 {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(1);

        HashMap<String, Integer> hashMap = new HashMap<>();
        hashMap.put("zhulei",100000000);

        Collection<Integer> integers = new ArrayList<>();
        ((ArrayList<Integer>) integers).add(1);
        ((ArrayList<Integer>) integers).add(2);
    }
}
